Magnetic lid system